@echo off
:: 检查是否提供了参数
if "%~1"=="" (
    echo Error: No commit message provided.
    exit /b 1
)

:: 执行 Git 命令
git add .
git commit -m "%~1"
git push

:: 输出完成信息
echo Git operations completed successfully.